include<stdio.h>
int main()
{
	int i;
	int sum;
	sum=0;
	int n;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
		sum=sum+i;
	printf("前n项和为%d\n",sum);
	return 0;
 }